﻿using PowerHub.MES.DTO.BasicData.DTO;
using PowerHub.MES.DTO.BasicData.QueryDto;
using PowerHub.MES.Entities.BasicData;
using PowerHub.MES.ReturnEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.IRepository.IBasic
{
    /// <summary>
    /// 用户数据接口层
    /// </summary>
    public interface IBasicDataUserinfoRepository
    {

        /// <summary>
        /// 获取用户列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationPageResult<List<BasicData_Userinfo>>> GetPageListAsync(QueryBasicData_UserinfoDTO query);

        /// <summary>
        /// 获取用户信息
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<BasicData_Userinfo> GetBasicDataUserinfoSingleAsync(string Id);


        /// <summary>
        /// 添加用户
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<int> CreateBasicData_UserinfoAsyncRepository(BasicData_Userinfo query);

        /// <summary>
        /// 批量删除用户
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<object>> BatchDeletionBasicData_UserinfoAsyncRepository(List<string>? ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<object>> UpdateBasicData_UserinfoAsyncRepository(BasicData_Userinfo query);

    }
}
